package net.ericaro.neojavagen.classes ;
import net.ericaro.neojavagen.classes.ConstructorDeclarator;
import net.ericaro.neojavagen.classes.Throws;
import net.ericaro.neojavagen.classes.ConstructorModifiers;
import net.ericaro.neojavagen.classes.ClassBodyDeclaration;
import net.ericaro.neojavagen.packages.JavadocComment;
import net.ericaro.neojavagen.interfaces.Annotations;
import net.ericaro.neojavagen.classes.ConstructorBody ;

/**
* *<pre> ConstructorDeclaration :
    JavadocComment? Annotations? ConstructorModifiers? ConstructorDeclarator Throws? ConstructorBody
</pre>
*/
public class ConstructorDeclaration  implements ClassBodyDeclaration {

JavadocComment javadoccomment;
Annotations annotations;
ConstructorModifiers constructormodifiers;
ConstructorDeclarator constructordeclarator;
Throws athrows;
ConstructorBody constructorbody ;

public ConstructorDeclaration( JavadocComment javadoccomment, Annotations annotations, ConstructorModifiers constructormodifiers, ConstructorDeclarator constructordeclarator, Throws athrows, ConstructorBody constructorbody ){
	this.javadoccomment = javadoccomment; this.annotations = annotations; this.constructormodifiers = constructormodifiers; this.constructordeclarator = constructordeclarator; this.athrows = athrows; this.constructorbody = constructorbody ;
	}public ConstructorDeclaration( ConstructorDeclarator constructordeclarator, ConstructorBody constructorbody ){
this.constructordeclarator = constructordeclarator; this.constructorbody = constructorbody ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	if (this.javadoccomment !=null ) stringbuilder.append( this.javadoccomment ).append(" ");
if (this.annotations !=null ) stringbuilder.append( this.annotations ).append(" ");
if (this.constructormodifiers !=null ) stringbuilder.append( this.constructormodifiers ).append(" ");
stringbuilder.append( this.constructordeclarator ).append(" ");
if (this.athrows !=null ) stringbuilder.append( this.athrows ).append(" ");
stringbuilder.append( this.constructorbody ).append(" ") ;
	return stringbuilder.toString();
}

}
